package edu.kaist.cs408.pof.common.service;

import edu.kaist.cs408.pof.common.model.DishVo;
import edu.kaist.cs408.pof.common.model.TalkVo;
import org.bson.types.ObjectId;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

/**
 * Created with IntelliJ IDEA.
 * User: duyleekun
 * Date: 5/9/12
 * Time: 4:36 AM
 * To change this template use File | Settings | File Templates.
 */
@Path("/dish")
public interface DishSvc {
	@POST
	@Path("{dish}/rate")
	@Consumes(MediaType.APPLICATION_JSON)
	@Produces(MediaType.APPLICATION_JSON)
	public DishVo rate(@PathParam("dish") ObjectId dish, @QueryParam("score") int score);

	@POST
	@Path("{dish}/talk")
	@Produces(MediaType.APPLICATION_JSON)
	@Consumes(MediaType.APPLICATION_JSON)
	public DishVo postTalk(@PathParam("dish") ObjectId dish, @QueryParam("user") ObjectId user, TalkVo talk);
}
